/*
 * @Author: your name
 * @Date: 2021-04-27 09:35:43
 * @LastEditTime: 2021-04-29 11:11:49
 * @LastEditors: 韩双双
 * @Description: In User Settings Edit
 * @FilePath: \ribao\daily-1807a-6\项目代码\project2\wipi\src\component\File\progress.tsx
 */
import NProgress from 'nprogress';
import { useEffect } from 'react';
import { observer } from 'mobx-react-lite';

const Progress:React.FC = ()=>{
    useEffect(()=>{
        console.log('重新渲染progress');
        NProgress.start();
        NProgress.configure({speed: 500});
        return ()=>{
            NProgress.done()
        }
    }, [])
    return null
}

export default observer(Progress);